package com.mfs.proxy.test;

import java.nio.ByteBuffer;

/**
 * ByteBuffer 测试
 *
 * @author mfs
 * @date 2023/7/13 23:25
 **/
public class bytebuffer {
    public static void main(String[] args) {
        ByteBuffer wrap = ByteBuffer.wrap("hello".getBytes());
        byte[] bytes = new byte[2];
        wrap.get(bytes);
        System.out.println("");
    }
}
